<div class="demo-container">
    <div class="demo-example">
        <div class="demo-title">基本用法</div>
        <div class="demo-text">
          跟随滚动效果请参考sticky
        </div>
        <d-codebox id="components-tabs-default" [sourceData]="basicSource">
            <d-anchor-basic demo></d-anchor-basic>
        </d-codebox>
    </div>

    <div class="demo-example">
      <div class="demo-title">异步加载</div>
      <div class="demo-text">
        支持异步加载, 可以先加载菜单或者先加载内容，点击按钮切换加载
      </div>
      <d-codebox id="components-tabs-asyn" [sourceData]="basicSource">
          <d-anchor-asyn demo></d-anchor-asyn>
      </d-codebox>
  </div>
</div>

